﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Bankeren.Service;

namespace Bankeren
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
    public class BankerenHost : IBankerenHost
    {
        #region Fields

        private Server server;

        #endregion

        #region Ctor

        public BankerenHost(Server server)
        {
            this.server = server;
        }

        #endregion

        #region Methods

        public ServerDetails GetServerDetails()
        {
            return new ServerDetails(server.ServerName, server.Players.Count());
        }

        #endregion
    }
}
